<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <!-- <HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/> -->
    <ClassCom params1="发生" />
    <ExtendCom params1="发生" />
    <FunctionCom :params1="params1" />
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import ClassCom from "./components/ClassCom.vue";
import ExtendCom from "./components/ExtendCom.vue";
import FunctionCom from "./components/FunctionCom.vue";
@Component({
  components: {
    ClassCom,
    ExtendCom,
    FunctionCom,
  },
})
export default class App extends Vue {
  params1: string = "符串给子的属性";
  mounted(): void {
    console.log("mounted is running");
  }
  show(value: string): void {
    this.params1 = value;
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
